package com.example.campuslink.commen.db.ai

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.example.campuslink.commen.db.invitation.InvitationTable

@Dao
interface AiDao {
    @Query("SELECT MAX(id) FROM ai_table")
    fun getMaxId(): Int?

    @Insert
    fun insertAiTable(aiTable: AiTable)

    @Update
    fun updateAiTable(aiTable: AiTable)

    @Query("SELECT * FROM ai_table WHERE userNumber = :userNumber")
    fun getAiTable(userNumber: String): AiTable?

}